package com.tyl.function;

import java.util.function.Supplier;
/*
* 供给型接口 supplier
* */
public class Demo4 {
    public static void main(String[] args) {
        // Supplier<String> supplier = new Supplier<String>() {
        //     @Override
        //     public String get() {
        //         return "get()";
        //     }
        // };
        Supplier<String> supplier=()->{ return "get()";};
        System.out.println(supplier.get());
    }
}
